package com.JohnCarloSalter.ReceiptDecorator;

import com.JohnCarloSalter.Receipt.ReceiptComponent;

public abstract class ReceiptDecorator implements ReceiptComponent {

	private ReceiptComponent trailer;
	
	
	public void create(ReceiptComponent rc) {
		trailer = rc;
	}
	
	public void callTrailer() {
		if(trailer != null) {
			trailer.print();
		}
	}
	
	public abstract void print();
	

}
